package cn.fly.blog.home.init;

import cn.fly.blog.common.constant.SystemConst;
import cn.fly.blog.home.service.AccountService;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@SuppressWarnings("all")
@Log4j2
@Component
public class DebugRunner implements ApplicationRunner {
    @Autowired
    AccountService accountService;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        System.out.println(SystemConst.SYSTEM_NAME);
        accountService.pickHistoryById(1L);
    }
}
